package ru.arriah.servicedesk.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import ru.arriah.common.bean.GenericBean;

public class RequestStatusBean extends GenericBean {

   protected String status;
   protected String comment;
   
   public RequestStatusBean() {
      super();
   }   
   
   @Override
   public void fillFromResultSet(ResultSet resultSet) {
      try {
         setStatus(resultSet.getString("requeststatus.request_status"));
         setId(resultSet.getInt("requeststatus.id"));
         setComment(resultSet.getString("requeststatus.comment"));
      } catch (SQLException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
   }
   
   public RequestStatusBean(ResultSet resultSet) {
      fillFromResultSet(resultSet);
   }
     

   public String getStatus() {
      return status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public String getComment() {
      return comment;
   }

   public void setComment(String comment) {
      this.comment = comment;
   }


   @Override
   public boolean isValid() {
      // TODO Auto-generated method stub
      return false;
   }   
}
